import request from '@/common/request'

export function listTask(data) {
    return request({
        url: '/initial/task/index',
        method: 'get',
        params: data
    })
}

export function allTask(data) {
    return request({
        url: '/initial/task/all',
        method: 'get',
        params: data
    })
}

export function createTask(data) {
    return request({
        url: '/initial/task/create',
        method: 'post',
        data: data
    })
}

export function updateTask(data) {
    return request({
        url: '/initial/task/update',
        method: 'post',
        data: data
    })
}

export function deleteTask(data) {
    return request({
        url: '/initial/task/delete',
        method: 'post',
        data: data
    })
}
